<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<title>
			Document
		</title>
		<hdjs/>
	</head>
	<body>
		<div class="wrap">
			<div class="menu_list">
				<ul>
					<li>
						<a href="{|U:'index'}"  class="action">
							商品列表
						</a>
					</li>
					<li>
						<a href="{|U:'add'}">
							添加商品
						</a>
					</li>
				</ul>
			</div>
			<table class="table2">
				<thead>
				<tr>
					<td class="w80">gid</td>
					<td>商品名称</td>
					<td>上架时间</td>
					<td>库存</td>
					<td class="w100">操作</td>
				</tr>
				</thead>
				<list from='$goods' name='d'>
					<tr>
						<td>{$d.gid}</td>
						<td><img src="__ROOT__/{$d.list_image}" class="w30 h30"/>
							{$d.gname|mb_substr:0,40,'utf-8'}</td>
						<td>{$d.addtime|date:'Y-m-d',@@}</td>
						<td>{$d.stock}</td>
						<td>
							<a href="{|U:'edit',array('gid'=>$d['gid'])}">编辑</a> |
							<a href="{|U:'edit',array('gid'=>$d['gid'])}">删除</a> |
							<a href="">查看</a> |
						</td>
					</tr>
				</list>
			</table>
		</div>
	</body>
</html>





